package com.erb.service.wzq;

import com.erb.entity.*;

import java.util.List;
import java.util.Map;

/**
 * Created by MoYao on 2020/6/11.
 */
public interface IPersonalService {
	Integer countinf(Integer id, Integer readed);

	Thirdparty selthi(Integer uid);

	Integer selinvest(Integer uid);

	Integer selinvest2(Integer uid);

	Map investuser(Integer uid);

	Map investuser2(Integer uid);

	Integer count2invest(Integer uid, Integer tkey, String date1, String date2);

	List<Invest> page2invest(Pager pager, Integer uid, Integer tkey, String date1, String date2);

	Integer countinvest(Integer uid);

	List<Invest> pageinvest(Pager pager, Integer uid);

	boolean updsuser(Integer id, String face);

	Integer updname(Integer id, String name);

	Map investmentsum(Integer id);

	Map profitsum(Integer id);

	Map investmentssum(Integer id);

	Integer countsinvest(Integer uid, Integer status);

	List<Invest> pagesinvest(Pager pager, Integer uid, Integer status);

	void updinvest(Integer id);

	void addthi(Thirdparty thirdparty);

	void updusers(Integer uid, String sex);

	Thirdparty selthis(Integer uid, Integer pwd);

	User seluser(Integer id);

	void upduser(Integer id, double balance);

	List<Bankcard> listban(Integer uid);

	Boolean addban(Bankcard bankcard);

	void addcap(CapitalLog capitalLog);

	Redenvelopes selred(String exchangeCode);

	Redpacketrecord selredp(Integer uid, String exchangeCode);

	String datered(String exchangeCode);

	void addredp(Redpacketrecord redpacketrecord);

	Integer countredp(Integer uid, Integer state);

	List<Redpacketrecord> pageredp(Pager pager, Integer uid, Integer state);

	List<Redpacketrecord> listredpa();

	void updredp(Integer id, Integer state);

	List<Inform> pageinf(Pager pager, Integer informRecipientsId, Integer readed);

	Inform selinfr(Integer informId, Integer informRecipientsId);

	void updinf(Integer informId, boolean readed);

	List<User> listuser();

	void updmod(Integer id, Integer modificationTime);
}
